<template>
      
  <div class="">
    <div class="box">
      <div class="boxTop" @click="goto()">
        <p>全民砍价</p>
        <i><van-icon name="arrow" /></i>
      </div>

      <div class="boxBottom">
        <img src="../assets/images/1.jpg" alt="" class="imgLeft" />
        <div class="Rights">
          <p class="contOne">重返校园 男式连衣牛仔外套</p>
          <p class="contTow">复古校园感，青春活力</p>
          <ul class="contUu">
            <li class="ulprice">
              <p class="price">￥0.9</p>
              <p>低价</p>
            </li>
            <li class="olDprice">
              <p>￥1</p>
              <p>原价</p>
            </li>
            <li class="unm">
              <p>200件</p>
              <p>限量</p>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getlist } from "../utils/api/home.js";
export default {
  data() {
    return {
      list: [],
    };
  },
  mounted() {
    getlist().then((res) => {
      console.log(res);
      this.list = res;
    });
  },
  methods: {
      goto(){
          this.$router.push('/gotobar')
      }
  },
};
</script>

<style lang='scss' scoped>
.box {
  height: 3.6rem;
  border-bottom: 0.2rem solid #f5f5f5;

  position: relative;
  .boxTop {
    padding-left: 2.76rem;
    padding-right: 2.76rem;
    border-bottom: 1px solid #eee;
    height: 0.9rem;
    position: absolute;
    top: 0;
    display: flex;
    line-height: 0.9rem;
    p {
      display: block;
      font-size: 0.38rem;
    }
    i {
      font-size: 0.38rem;
    }
  }

  .boxBottom {
    padding: 0.14rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.46rem;
    padding: 0.02rem;
    display: flex;
  }
}
.imgLeft {
  width: 2.14rem;
  height: 2.14rem;
}
.Rights {
  margin-left: 0.15rem;
  .contOne {
    font-size: 0.33rem;
    color: #333;
  }
  .contTow {
    font-size: 0.3rem;
    color: #b2b2b2;
    margin-top: 0.02rem;
  }
}
.contUu {
  display: flex;
  align-items: center;
  width: 3.42rem;
  height: 1.3rem;
  li {
    height: 0.74rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .ulprice {
    margin-top: 0.66rem;
  }
  .ulprice {
    .price {
      color: red;
      font-weight: 700;
      font-size: 0.25rem;
    }
  }
  p {
    font-size: 0.26rem;
  }
  .olDprice {
    margin-top: 0.66rem;
    margin-left: 0.72rem;
    color: #b2b2b2;
  }
  .unm {
    margin-top: 0.66rem;
    margin-left: 0.72rem;
    color: #b2b2b2;
  }
}
</style>
